#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'S126_wendy'
__mtime__ = '2017/3/5'
"""


#encoding=utf-8
#python version 3.4

import unittest
import sys

sys.path.append('E:\wendygit\scalersForum\src\s126_wendy')

from ..scalers.support import cookieUtil

# 此测试用例可以执行。
class Test(unittest.TestCase):

    def setUp(self):
        print('test unitest  setup')

    def tearDown(self):
        print('test unitest  teardown')


    def testCookieToDict(self):
        cookieStr = "pac_uid=1_790947589; tvfe_boss_uuid=7bb1f90025e2bbfe; gaduid=57d10cc1cda81; msuid=ix1eueb9rd7er3e8uuw57ubelrmwwgq2nlx2bfuj; o_cookie=790947589; pgv_pvid=9590355513; ptcz=4241e320be9ad14ac93cb42360544d4bdca22324388f785739209b450813a2b8; pt2gguin=o0790947589; uin=o0790947589; skey=@pmRxmLa2S; ptisp=ctc; MANYOU_SESSIONID_bf895=a1281c993501a9e4ccb644ca3c5bbbb1; qqUser=%7B%22uin%22%3A790947589%2C%22nic"
        cookieDic = cookieUtil.convertStrToDict(cookieStr)
        print(cookieDic)

if __name__ == "__main__":
    unittest.main()